﻿using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal abstract class DXFNum
    {
        public abstract void Read(BinaryReader reader);

        public static DXFNum Create(bool fIfmtUser)
        {
            if (fIfmtUser)
                return new DXFNumUsr();
            return new DXFNumIFmt();
        }

        public abstract void Write(BinaryWriter writer);

        public abstract InternalNumberFormat GetNumberFormat();
    }
}